plugins {
    id("java")
    id("org.jetbrains.intellij") version "1.15.0"
}

group = "com.nazarov"
version = "2.6.0"

repositories {
    mavenCentral()
}

java {
    sourceCompatibility = JavaVersion.VERSION_17
}

// See https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
    version.set("2022.2.5")
}

tasks {
    buildSearchableOptions {
        enabled = false
    }

    patchPluginXml {
        version.set("${project.version}")
        sinceBuild.set("222")
        untilBuild.set("242.*")
    }
}

// Include the generated files in the source set
sourceSets {
    main {
        java {
            srcDirs("src/main/gen")
        }
    }
}

dependencies {
    // https://mvnrepository.com/artifact/com.googlecode.soundlibs/jlayer
    implementation group: 'com.googlecode.soundlibs', name: 'jlayer', version: '1.0.1.4'
    // https://mvnrepository.com/artifact/org.springframework/spring-webflux
  //  implementation group: 'org.springframework', name: 'spring-webflux', version: '6.0.9'
    // https://mvnrepository.com/artifact/commons-validator/commons-validator
    implementation 'com.tianscar.javasound:javasound-aac:0.9.8'
    implementation group: 'commons-validator', name: 'commons-validator', version: '1.7'

}

